project( MOOPerformanceAssessment )

SET(CMAKE_C_FLAGS_RELEASE "-Wall -O3 -DNDEBUG -fomit-frame-pointer -finline-functions -ffast-math" CACHE STRING "Release options.")
SET(CMAKE_C_FLAGS_DEBUG "-DDEBUG -ggdb" CACHE STRING "Debug options.")
SET(CMAKE_BUILD_TYPE release )

add_subdirectory( ../Logging/cmake ../lib )

find_package(Qt4 REQUIRED)

set( QT_DONT_USE_QTGUI TRUE )

set( LIBRARY_OUTPUT_PATH ../lib )
set( EXECUTABLE_OUTPUT_PATH ../bin )

include_directories( ${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ../include ../Logging/include )
link_directories( ../Logging/lib )

set( SRCS ../src/main.cpp
../src/MOOPerformanceAssessmentConfig.cpp
../src/MOOPerformanceAssessment.cpp
../src/MOOPerformanceAssessmentFunctional.cpp
)

add_library( Wilcoxon				SHARED ../src/Wilcoxon.cpp ../src/stat.cpp ../src/statexceptions.cpp )
add_library( CSVDataSetReader 			SHARED ../src/CSVDataSetReader.cpp )
add_library( EpsilonIndicator			SHARED ../src/EpsilonIndicator.cpp )
add_library( PISAFileNameAssembler		SHARED ../src/PISAFileNameAssembler.cpp )
add_library( PisaFileOutputPostProcessor	SHARED ../src/PisaFileOutputPostProcessor.cpp )

add_executable( MOOPerformanceAssessment ${SRCS} )
target_link_libraries( MOOPerformanceAssessment ${QT_QTCORE_LIBRARY_RELEASE} Logging )
